package office.action.business.wrapper;

import java.util.Date;

import office.bo.business.impl.Contract;
import platform.common.bo.IdentifiableObj;

public class ContractWrapper {
	private String id;
	/** 合同名称 */
	private String contractName;
	/**合同编码*/
	private String contractCode;
	/**合同金额*/
	private double contractMoney;
	/**合同类型 1：正常合同，2：采购合同*/
	private String contractType;
	/** 合同签订日期 */
	private Date signDate;
	/**对应的标书*/
	private String bidBookId;
	/**项目名称*/
	private String projectName;
	/**项目单位*/
	private String projectUnit;
	/**联系人*/
	private String linkMan;
	/**电话*/
	private String telePhone;
	/**业务员*/
	private String salesMan;
	/**质保金额*/
	private double qualityMoney;
	/**是否签订合同*/
	private String isSign;
	/**是否备货*/
	private String isStockUp;
	/**是否发货*/
	private String isDelivery;
	/**是否开发票*/
	private String isInvoice;
	/**汇款金额*/
	private double remitMoney;
	/**
	 *合同状态
	 */
	private String status;
	/**
	 * 如果为采购合同、则有以下此字段
	 * 
	 */
	/**供货单位*/
	private String availabilityUnit;
	/**发货日期*/
	private Date deliveryDate;
	
	private String salesManName;
	
	private String createMan;//创建人
	/**
	 * 从bo拷贝属性
	 * @param baseBO
	 */
	public void copyToWrapper(IdentifiableObj baseBO){
		Contract bo = (Contract)baseBO;
		this.id = bo.getId().toString();
		this.contractName = bo.getContractName();
		this.contractCode = bo.getContractCode();
		this.contractMoney = bo.getContractMoney();
		this.contractType = bo.getContractType();
		this.signDate = bo.getSignDate();
		this.bidBookId = bo.getBidBookId();
		this.projectName = bo.getProjectName();
		this.projectUnit = bo.getProjectUnit();
		this.linkMan = bo.getLinkMan();
		this.telePhone = bo.getTelePhone();
		this.salesMan = bo.getSalesMan();
		this.qualityMoney = bo.getQualityMoney();
		this.isSign = bo.getIsSign();
		this.isStockUp = bo.getIsStockUp();
		this.isDelivery = bo.getIsDelivery();
		this.isInvoice = bo.getIsInvoice();
		this.remitMoney = bo.getRemitMoney();
		this.availabilityUnit = bo.getAvailabilityUnit();
		this.deliveryDate = bo.getDeliveryDate();
		this.status = bo.getStatus();
		this.salesManName= bo.getSalesManName();
	    this.createMan = bo.getCreateMan();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	public String getContractCode() {
		return contractCode;
	}

	public void setContractCode(String contractCode) {
		this.contractCode = contractCode;
	}

	public double getContractMoney() {
		return contractMoney;
	}

	public void setContractMoney(double contractMoney) {
		this.contractMoney = contractMoney;
	}

	public Date getSignDate() {
		return signDate;
	}

	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}

	public String getBidBookId() {
		return bidBookId;
	}

	public void setBidBookId(String bidBookId) {
		this.bidBookId = bidBookId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectUnit() {
		return projectUnit;
	}

	public void setProjectUnit(String projectUnit) {
		this.projectUnit = projectUnit;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getTelePhone() {
		return telePhone;
	}

	public void setTelePhone(String telePhone) {
		this.telePhone = telePhone;
	}

	public String getSalesMan() {
		return salesMan;
	}

	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}

	public double getQualityMoney() {
		return qualityMoney;
	}

	public void setQualityMoney(double qualityMoney) {
		this.qualityMoney = qualityMoney;
	}

	public String getIsSign() {
		return isSign;
	}

	public void setIsSign(String isSign) {
		this.isSign = isSign;
	}

	public String getIsStockUp() {
		return isStockUp;
	}

	public void setIsStockUp(String isStockUp) {
		this.isStockUp = isStockUp;
	}

	public String getIsDelivery() {
		return isDelivery;
	}

	public void setIsDelivery(String isDelivery) {
		this.isDelivery = isDelivery;
	}

	public String getIsInvoice() {
		return isInvoice;
	}

	public void setIsInvoice(String isInvoice) {
		this.isInvoice = isInvoice;
	}

	public double getRemitMoney() {
		return remitMoney;
	}

	public void setRemitMoney(double remitMoney) {
		this.remitMoney = remitMoney;
	}

	public String getContractType() {
		return contractType;
	}

	public void setContractType(String contractType) {
		this.contractType = contractType;
	}

	public String getAvailabilityUnit() {
		return availabilityUnit;
	}

	public void setAvailabilityUnit(String availabilityUnit) {
		this.availabilityUnit = availabilityUnit;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSalesManName() {
		return salesManName;
	}

	public void setSalesManName(String salesManName) {
		this.salesManName = salesManName;
	}

	public String getCreateMan() {
		return createMan;
	}

	public void setCreateMan(String createMan) {
		this.createMan = createMan;
	}
	
}
